﻿using AcademiaInteligenteData;
using AcademiaInteligenteData.DAL;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace AcademiaInteligenteData.BLL
{
    public class BoMusica_Playlist
    {
        public void InserirMusica_Playlist(Musica_Playlist playlist)
        {
            DaoMusica_Playlist daoMusica_Playlist = new DaoMusica_Playlist();
            daoMusica_Playlist.InserirMusica_Playlist(playlist);
        }
        public void AlterarMusica_Playlist(Musica_Playlist playlist)
        {
            DaoMusica_Playlist daoPlaylist = new DaoMusica_Playlist();
            daoPlaylist.AlterarMusica_Playlist(playlist);
        }
        public void ExcluirMusica_Playlist(int id)
        {
            DaoMusica_Playlist daoMusica_Playlist = new DaoMusica_Playlist();
            daoMusica_Playlist.ExcluirMusica_Playlist(id);
        }
        public Musica_Playlist SelecionarPlaylistPorID(int id)
        {
            return new DaoMusica_Playlist().SelecionarMusica_PlaylistPorID(id);
        }

        public List<Musica_Playlist> SelecionarMusica_PlaylistPorAmbiente(int idAmbiente)
        {
            return new DaoMusica_Playlist().SelecionarMusica_PlaylistPorAmbiente(idAmbiente);
        }

        public List<Musica_Playlist> ListarMusica_Playlist(int idPlaylist)
        {
            DaoMusica_Playlist daoMusica_Playlist = new DaoMusica_Playlist();
            return daoMusica_Playlist.ListarMusica_Playlist(idPlaylist);
        }
        public void AlterarMusica_PlaylistAmbiente(Musica_Playlist musicaplaylist)
        {
            new DaoMusica_Playlist().AlterarMusica_PlaylistAmbiente(musicaplaylist);
        }
        public void InserirMusica_PlaylistAmbiente(Musica_Playlist musicaplaylist)
        {
            new DaoMusica_Playlist().InserirMusica_PlaylistAmbiente(musicaplaylist);
        }
        public Musica_Playlist SelecionarMusica_PlaylistAmbientePorID(int id)
        {
            return new DaoMusica_Playlist().SelecionarMusica_PlaylistAmbientePorID(id);
        }
    }
}
